This file shows how to replicate each of the empirical tables and figures in our paper.

Setting the working directory in R to whatever directory you downloaded the replication materials from our paper.

When you download files from the dataverse, make sure the file formats are the original formats (e.g., .Rdata or .dta) rather than .tab files that Dataverse sometimes transforms data files into.

Figure 1: Yearly state policy liberalism, 1936–2014. 
	- Run Figures1.R

Figure 2: RD estimate of the effect of electing a Democratic governor on change in policy liberalism after the governor’s first year in office.
	- Run Figures2-4_GovRD.R in R

Figure 3: RD estimates of the effect of electing a Democratic governor
	- Run Figures2-4_GovRD.R in R

Figure 4: Changes in gubernatorial policy effects across the 1936–2014 period.
	- Run Figures2-4_GovRD.R in R
	
Figure 5: RD estimates of the effect of electing a Democratic state house
	- Run Figures5-6_StateLegRD.R in R
	
Figure 6: Changes in legislative policy effects across the 1968–2012 period.
	- Run Figures5-6_StateLegRD.R in R

Figure 7: Relationship between mass partisan divergence (Anonymized 2016) and elite par- tisan divergence (Shor and McCarty 2011), averaged within states across the 1993–2014 period. 
	- Run Figures7.R in R

Figure 8: Position effects and policy effects.
	- Run Figures8.R in R
	
Table 2: Policy Effects of Democratic Control the Governorship, State House, and State Senate
	- Run Tables2-3_PanelReg.do in Stata

Table 3: Moderators of Partisan Effects on Policy.
	- Run Tables2-3_PanelReg.do in Stata

Appendices 5-10 except A8:
	- Run Appendix_5-10_PanelReg_SI.do in Stata
